const getRandomNumber = (len: number, k: number): number[] => {
  //8 6
  const res: number[] = [];
  const maxn = len;
  while (res.length < k) {
    const x: number = Math.floor(Math.random() * maxn);
    if (!res.includes(x)) {
      res.push(x);
    }
  }
  return res;
}

export default getRandomNumber